import cookie from 'js-cookie'
const HD_KOOKIE = {
    set: (name, vaule, time) => {
        time ? cookie.set(name, vaule, time) : cookie.set(name, vaule)
    },
    get: (name) => {
        return name ? cookie.get(name) : cookie.get();
    },
    set_token: (value, time) => {
        time ? cookie.set('auth_token', vaule, time) : cookie.set('auth_token', vaule)
    },
    get_token: () => {
        return cookie.get('auth_token')
    }
}

export default HD_KOOKIE